﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Delay
{
    public class HotPhoneResult : DependencyObject, INotifyPropertyChanged
    {
        //
        public HotPhoneResult()
        {
           //SearchResultItems = new ObservableCollection<phonePkItem>();
            //ImageVis = false;
        }
        private bool _imageVis;
        public bool ImageVis
        {
            get
            {
                return _imageVis;
            }
            set
            {
                if (_imageVis != value)
                {
                    _imageVis = value;
                    NotifyPropertyChanged("ImageVis");
                }
            }
        }
        public int CurrentPage
        {
            get;
            set;
        }
        public int TotalPage
        {
            get;
            set;
        }
        public int PageSize
        {
            get;
            set;
        }
        public bool AllowAdd
        {
            get;
            set;
        }
        public string ClassName
        {
            get;
            set;
        }
          public string GetPhoneInfoUrl()
        {
               return null;
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        public string ClassNmae { get; set; }
    }
}
